<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;   
    }

    .box {
        position: relative;
        width: 310px;
        height: 438px;
        margin: 100px 350px;
    }
    .box img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 1px 1px 1px 1px #333;
        transition: all 1s ease-out;
        transform-origin: bottom center;
    }
    
    .box:hover img:nth-child(1) {
        transform: rotate(-50deg);
    }
    .box:hover img:nth-child(2) {
        transform: rotate(-40deg);
    }
    .box:hover img:nth-child(3) {
        transform: rotate(-30deg);
    }
    .box:hover img:nth-child(4) {
        transform: rotate(-20deg);
    }
    .box:hover img:nth-child(5) {
        transform: rotate(-10deg);
    }
    .box:hover img:nth-child(11) {
        transform: rotate(0deg);
    }
    .box:hover img:nth-child(7) {
        transform: rotate(50deg);
    }
    .box:hover img:nth-child(8) {
        transform: rotate(40deg);
    }
    .box:hover img:nth-child(9) {
        transform: rotate(30deg);
    }
    .box:hover img:nth-child(10) {
        transform: rotate(20deg);
    }
    .box:hover img:nth-child(6) {
        transform: rotate(10deg);
    }



    .box2 {
        position: relative;
        width: 310px;
        height: 438px;
        margin: 400px 800px;
    }
    .box2 img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 1px 1px 1px 1px #333;
        transition: all 5s ease-out;
        transform-origin: bottom center;
    }
  
    .box2:hover img:nth-child(1){
        transform: rotate(0deg);
    }

    .box2:hover img:nth-child(2){
        transform: rotate(10deg);
    }
    .box2:hover img:nth-child(2){
        transform: rotate(20deg);
    }
    .box2:hover img:nth-child(3){
        transform: rotate(30deg);
    }
    .box2:hover img:nth-child(4){
        transform: rotate(40deg);
    }
    .box2:hover img:nth-child(5){
        transform: rotate(50deg);
    }
    .box2:hover img:nth-child(6){
        transform: rotate(60deg);
    }
    .box2:hover img:nth-child(7){
        transform: rotate(70deg);
    }
    .box2:hover img:nth-child(8){
        transform: rotate(80deg);
    }
    .box2:hover img:nth-child(9){
        transform: rotate(90deg);
    }
    .box2:hover img:nth-child(10){
        transform: rotate(100deg);
    }

    .box2:hover img:nth-child(11){
        transform: rotate(110deg);
    }
    .box2:hover img:nth-child(12){
        transform: rotate(120deg);
    }
    .box2:hover img:nth-child(13){
        transform: rotate(130deg);
    }
    .box2:hover img:nth-child(14){
        transform: rotate(140deg);
    }
    .box2:hover img:nth-child(15){
        transform: rotate(150deg);
    }
    .box2:hover img:nth-child(16){
        transform: rotate(160deg);
    }
    .box2:hover img:nth-child(17){
        transform: rotate(170deg);
    }

    .box2:hover img:nth-child(18){
        transform: rotate(180deg);
    }
    .box2:hover img:nth-child(19){
        transform: rotate(190deg);
    }
    .box2:hover img:nth-child(20){
        transform: rotate(200deg);
    }
    .box2:hover img:nth-child(21){
        transform: rotate(210deg);
    }
    .box2:hover img:nth-child(22){
        transform: rotate(220deg);
    }
     .box2:hover img:nth-child(23){
        transform: rotate(230deg);
    }  
    .box2:hover img:nth-child(24){
        transform: rotate(240deg);
    }
    .box2:hover img:nth-child(25){
        transform: rotate(250deg);
    }
    .box2:hover img:nth-child(26){
        transform: rotate(260deg);
    }
    .box2:hover img:nth-child(27){
        transform: rotate(270deg);
    }
    .box2:hover img:nth-child(28){
        transform: rotate(280deg);
    }
    .box2:hover img:nth-child(29){
        transform: rotate(290deg);
    }
    .box2:hover img:nth-child(30){
        transform: rotate(300deg);
    }
    .box2:hover img:nth-child(31){
        transform: rotate(310deg);
    }
    .box2:hover img:nth-child(32){
        transform: rotate(320deg);
    }
     .box2:hover img:nth-child(33){
        transform: rotate(330deg);
    }  
    .box2:hover img:nth-child(34){
     transform: rotate(340deg);
    }
    .box2:hover img:nth-child(35){
        transform: rotate(350deg);
    } 
    .box2:hover img:nth-child(36){
        transform: rotate(360deg);
    } 
</style>
<body>
    <div class="box">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk2.png" alt="">
    </div>




    <div class="box2">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk1.png" alt="">
        <img src="../img/pk2.png" alt="">
        <img src="../img/pk2.png" alt="">
    </div>
</body>
</html>